These words seem to be widely used to naming variables. What do these words stand for and why are they so frequently used? By the way, what's the origins of them?
These two words are just placeholders in computer programs. Wikipedia https://en.wikipedia.org/wiki/Foobar seems have a good answer. There are several origin of foo: