Teaching Language Models To Gather Information Proactively