I can't remember the details, there's a couple different versions, but I think the idea is he actually drowned himself like he pretends to do in the movie, and the movie itself his either his dying hallucination or his version of purgatory, or something (also Ferris is his superego, or his ID, or his subconscious...).