Place it right after a serious line or a confident claim in your edit, then follow it with a shocked sound for the reaction and an oh no no no laugh to close the gag before the scene moves on.