Drugmaker Ipsen has agreed to buy five consumer healthcare products from bigger French rival Sanofi for 83 million euros ($88 million), in a deal which Ipsen said should boost its profits.