Place it at the start of a scene as the entrance cue, then follow it with the Directed by Robert B. Weide sting when the joke lands awkwardly, or add the Ba Dum Tss drum sting after a failed detective deduction for a comic payoff.