While Bart (eventually) receives a spy camera, Homer attends a stag party for a co-worker at The Rusty Barnacle. Unknowingly, Marge takes the kids out to dinner at the same restaurant that night, where Bart witnesses Homer dancing with a belly dancer at the stag party.
Bart takes a photo with his spy camera, and after he gets it developed, Milhouse asks for a copy and he distributes it around school. Soon, everyone in Springfield has a copy, including Marge, who kicks Homer out.
Homer soon comes crawling back, and Marge explains that he has taught Bart a very bad lesson. To make it up to her, Homer takes Bart to meet the belly dancer, to show Bart that she is a real person, but ends up dancing in a burlesque show. Realizing what he's doing, he stops the show to give a speech on the importance of women. Marge turns up and she forgives him.