Carlos Barria / Reuters German Chancellor Angela Merkel welcomes Prime Minister Justin Trudeau at the G20 summit in Hamburg, Germany on July 7, 2017.

Prime Minister Justin Trudeau has heaped praise on his German counterpart less than two weeks before Angela Merkel is set to face voters.

During a question and answer session at the Women in the World conference in Toronto Monday, event founder Tina Brown asked the prime minister what it is like to work with Merkel.

Trudeau conceded he had to be "careful" because the German chancellor is in an election campaign right now.

She's thoughtful and serious and intellectual. And I've got a nice head of hair. Apparently.

"And I don't want to comment on it because I will, of course, work with whomever gets elected. That's a line I've used a few times," he quipped, referencing his go-to statement whenever he was asked to weigh in on the U.S. presidential race last year.

"But I do have to say that Angela is absolutely extraordinary as a leader."

Trudeau added that people used to joke about the thought of him sitting down with the German chancellor.

"And I always said, well, that's sort of a mean thing to say to me. Because, you know, she's thoughtful and serious and intellectual. And I've got a nice head of hair. Apparently."