Mix sugar, water, and cocoa in a small saucepan. Bring to a boil over medium heat, stirring occasionally. Reduce heat to low and simmer, stirring occasionally, just until sugar and cocoa are completely dissolved. Remove from heat and cool to room temperature.