His visit comes at a time when Peru and Chile are at odds over maritime boundaries .