The ramp helps derail the chain off the lower ring and the pin pulls it up. Required on aluminum chain rings because they'd get beat up by the chain dragging on them. Cassettes can use just ramps because they're steel.
Different brands and their different cranks will have different ring thicknesses and offsets. I'd find a replacement specifically for my crankset.
__________________
Genesis 49:16-17
"Well, well!" said Holmes, impatiently. "A good cyclist does not need a high road. The moor is intersected with paths and the moon is at the full."