If you are buying and installing a new main spring it should come ready coiled inside a washer to a small enough diameter to fit into the barrel. You just place the spring/washer onto the barrel so that the wall of the barrel is supporting the washer and then carefully and evenly push the spring through the washer and into the barrel. Push the outside coils of the spring not the middle and it should just pop into place.
Make that you place the washer the right way up so that the spring coils up in the right direction (clockwise or anti-clockwise) as you only get one shot at this the easy way.