Does SA invest three times more in education than Kenya?

A member of South Africa’s parliament recently stated that the country spends three times more on education than Kenya. But do the statistics back this up, and does more money mean a better education system?