When the hobbits all stop at the house that Frodo purchased on the very outskirts of the Shire, he stops to tell all of them that he is really leaving. They respond that they already knew that and were here to go with him on his grand adventure. They'd been eavesdropping when Frodo talked with Gandalf.