What is this spiky-leaved Mexican plant with large seed pods?
It seems to be some sort of Agave genus of succulent plants, like Sisal or Blue Agave from which Tequila is distilled. Not sure which species exactly, perhaps Agave Lechuguilla

The fruit bearing trunk visible in the photo appears to be a blooming stalk.

Source



Parts of some plants are edible, like leaves, flowers and stalks, but the fruit doesn't seem to be suited for human consumption, as far as I know.

From what I gather around the internet they mostly seems like bean pods and contains little more than what appear to be seeds.

Source



Source