This is famously stated in Douglas Adams's *The Hitchhiker's Guide to the Galaxy* (not *The Guide Galaxy*).
While the answer itself is revealed, the question is never explicitly stated in the book.