Likely Roger Moore in The Saint (1962–1969), Episode: "The Saint in the Raw" (Series 1, Episode 12).
Plot: Simon Templar (Moore) goes undercover as a ship's chef on the freighter Raw to investigate a murder/smuggling ring. Classic Saint setup: Templar adopts a persona (chef, pilot, art dealer) to infiltrate.
If not The Saint, provide: era, actor vibe, ship type, villain.