Place it at the very end of a scene, after the setup has peaked and before any payoff is shown. For a second ending gag, follow it with the Directed by Robert B. Weide sting, or open with the Ba Dum Tss Drum Sting before the reveal goes wrong.