Charles Leclerc says he knew Ferrari had the pace to take pole position for the Azerbaijan Grand Prix.