insert text into top of file

how would you insert text into a existing file using aguments
first arguments being the line of text and the second argument being file name

echo $1 > temp
cat $2 >> temp 
mv temp $2