Published : 12 May 2013, 06:44 PM
Updated : 09 Aug 2022, 10:38 AM
Ayew put the second-placed home team in front with a powerful header on the stroke of halftime and netted the second in the 62nd minute from close range.
Substitute Eden Ben Basat scored a late consolation for 10th-placed Toulouse.
Marseille, unbeaten in their last 10 games, moved to 70 points from 36 matches, four points behind leaders PSG, who have played 35.
The Paris club will be confirmed as champions for the first time since 1994 if they win at Olympique Lyon, who are third on 63 points, on Sunday.
A PSG victory would also guarantee second spot and direct qualification for the Champions League group stage for Marseille, who have already clinched a top three spot due to a 10-point lead over fourth-placed Lille and Nice in fifth.
The team that finishes third enters the Champions League third qualifying round.
"For once, we will support PSG tomorrow (Sunday)," Marseille playmaker Mathieu Valbuena told French broadcaster Canal Plus with his club having played down any hope of winning the title.
BOTH FEET
Nine-times French champions Marseille were not even expected to challenge for a Champions League qualifying spot this season after a disappointing 10th-placed finish last term.
"We now have both feet in the Champions League. That's logical. We have deserved our points," said Valbuena, whose side snatched a record 18th win on Saturday after having often been criticised for some laboured, albeit solid, displays.
Saturday's game followed suit, with Marseille struggling against a very well organised and aggressive visiting team.
Neither side created many chances until Ayew broke the deadlock from Valbuena's right wing cross.
The Ghanaian forward, who had not scored since late January, made the most of a rare opportunity and tapped home after Morgan Amalfitano picked up a loose ball in the box to put him clear.
Andre-Pierre Gignac could have wrapped up the points but his 70th minute attempt was saved on the goal line by Toulouse fullback Serge Aurier.
The home team showed signs of nerves as the visitors continued to pushed forward and eventually conceded a goal when Basat ran clear to slip the ball through goalkeeper Steve Mandanda's legs with eight minutes left.
However, Marseille regrouped and held on to clinch their fourth victory in a row and secure Champions League qualification for the sixth time in the last seven seasons.