Place it right after the reveal or mistake in your edit, then follow with a dun dun dun sound for a second punch, or layer the SpongeBob fail sound underneath when the joke needs a cartoon finish.