Ernesto is located on the snout of the bear statue. One must lower the statue into the water to be able to rescue him and this can be achieved by pressing the button on the contraption suspending the statue. Though locating Ernesto is simple enough, if you are not currently Rico, you must find his Telepoint, which lies further into the temple. Once located, simply backtrack to Ernesto and rescue him.