If the female wasp arrives in a male fig—also known as a caprifig—she lays her eggs and then dies. Her eggs hatch, with blind, flightless male wasps hatching first. They mate with their female counterparts. The male wasps then burrow a tunnel out of the caprifig, and the females fly out, full of fertilized eggs and carrying pollen, starting the cycle anew.
...but, alas, the corpse is gone:
The crunches you experience when chewing a fig are the fig seeds, not the wasp.
The dead wasps-in-figs myth is true.
https://www.treehugger.com/are-there-really-wasps-your-figs-4868822
...but, alas, the corpse is gone: