Place it right after the failed joke in your edit, then follow it with the SpongeBob Fail sound to underline the flop before cutting to the next scene, or start with the Dun Dun Dun sound to set up the failed joke before the laugh lands.