Just use the line number as the address to which apply the command:
sed '123 i hello' file
will insert a line containing "hello" before line 123. Maybe you need the s (substitute) command to insert text at some point into the same line. Note that the sed tutorial linked by gilead above is worth to be read!