Yes to self expanding foam. Great stuff!
But (for
@mpayne or anyone flying both ways), you'll need to get it home, too, right? So you'll need a box on the other end. Also the expanding foam (or regular foam, tape, etc). That argues for making a reservation at the same hotel on arrival and just before departure. Arrange with them (pay them) to store this stuff while you ride.
My experience is that intl airlines want $200 to take a bike as baggage. Unless you are an elite member (maybe) but almost certainly if you're flying business class. Got some FF miles for an upgrade? How far does the $200 get you towards business class?
Also consider shipping the bike to the hotel rather than taking it as baggage. Less than $200? Less hassle that way: no need to figure out how to get it to the hotel from the airport.
Altogether some research to investigate these possibilities is a good idea.