In an edit, place it immediately after the reveal that causes the panic, then build the joke with a sudden suspense sting before it and follow it with a no no wait wait clip while the person tries to recover.