I'm assuming you're talking about the gate int he Forest Temple that holds the chest with the Boss Key, correct? Can you see the little markings on the ground? It will look like a Z. That's the pattern you must throw the Boomerang in to open the gate. Start with the one closest to you, and target the four statues, in the correct order, in one throw, and it should open.