Place it immediately after the joke or reveal, before the next scene cuts away. For a failed pun, follow it with Ba Dum Tss to close the beat, and for a tense setup, open with Drama before the laugh answers it.