Is this a late-model 642 with the MIM parts and no sear pin, or is the sear attached to the hammer with a pin? If it's the former, you just need to take the hammer and sear out, put in the spring, and reassemble. To remove the hammer, you need to draw it back enough to put a paper clip or small pin into the mainspring strut to hold the mainspring in place first.
If it's the latter, I can't figure out how your spring escaped, but you need to remove the hammer, drive out the sear pin (not all the way, just enough to clear the sear) put the spring in its seat in the hammer, use the pin punch as a slave pin to hold the sear and spring in place, and drive the sear pin back in flush. Then, just reassemble the hammer into the gun.