I have recently traveled to France from the UK as a tourist (3rd of August). Not by plane, but by car(/train), but I think the protocols are similar.
The sworn statement should be printed and signed. And it should be handed to the security officer with your other travel documents (i.e. passport, visa). My advice is to print this form in advance and fill out the form on the day you will travel to France. The French authorities will check your passport and the will scan the printed form. And they will keep the form for their reference.
The public health passenger locator card (passenger locator form) is a form provided by the WHO rather than the french authorities.
This passenger locator card provides an appropriate method of rapidly
collecting passenger contact information and is recommended to be used
when public health authorities suspect the potential for disease
transmission on board an aircraft and a subsequent need for contact
tracing. The information is intended to be held by public health
authorities in accordance with applicable law and is to be used only
for authorized public health purposes.
This form should also be filled out. Unless stated otherwise you will also need to print this form and hand it over to Ryanair upon checkin or boarding at the airport.
As the situation is different for each country and can change in a matter of days or even hours, I would recommend to do requested tasks the best way possible. The authorities want to be sure that you are not infected and that you won't get infected.