Place it at the end of a failed attempt or an uncomfortable pause, after awkward crickets have set up the tension, so it lands as the punchline. Follow it straight away with chipmunk laugh to keep the mood light and stop the joke from hanging too long.