Season 5 Episode 22: Belaboring the Point
When a proud and happy Ryan announces that Dana is pregnant, Jim warns him of Dana's upcoming hormone swings, and ends up dreaming that he is pregnant.