Wasn't that a Family Guy bit? Peter cuts into the stripper cake and slices the girl? Or something like that.
The Simpsons: The guys at the Retirement Castle bring a cake with a woman inside it but she doesn't come out of the castle, they check it out and then Jasper says: "Uh, someone call the nurse."