if you ate a red ant I'm sure it would hurt for a few seconds but nothing more. Everyday ants you find in your backyard are harmless other than that. Some people who got stranded in the wilderness survived off of bugs and plants, including ants.
Nothing bad. Ants are perfectly edible. It might bite you on the way down, but that wouldn't cause any problems (except for a little pain). Nothing to worry about.