Murder by Death was written by Neil Simon and directed by Robert Moore.
It pays homage to film noir while parodying it. Martin under plays his wild and crazy guy routine to great effect and at times the interspersed scenes are pretty convincing. It is a funny and clever film. A reminder of the sort of risk taking movies Steve Martin used to make.